package com.example.eurekaservice.Controller;


import com.example.eurekaservice.Service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HellerController {
    @Autowired
    private HelloService helloService;
    @GetMapping("/getHello")
    public String getHello(){
        return helloService.getHello();
    }
}